<?php
class Levels_model extends CI_Model
{
	public function __construct()
	{
		$this->load->database();
	}	
	
	public function get_levels()
	{
		$query = $this->db->get('levels');
		return $query->result_array();
	}	
	
	public function set_levels()
	{
		$data = array(
			'name' => $this->input->post('name'),
		);
		
		return $this->db->insert('levels', $data);
	}	
}